﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel_Project.Bean
{
    public class Night_ShenDomain
    {
        private int staff_id;//编号
        private int staff_identity;//身份证
        private string staff_name;//姓名
        private int staff_age;//年龄
        private string staff_sex;//性别
        private int staff_phone;//电话
        private string staff_birth;//出生日期
        private string time_on;//开始时间
        private string end_time;//结束时间

        public Night_ShenDomain(int staff_id, int staff_identity, string staff_name, int staff_age, string staff_sex, int staff_phone, string staff_birth, string time_on, string end_time)
        {
            this.staff_id = staff_id;
            this.staff_identity = staff_identity;
            this.staff_name = staff_name;
            this.staff_age = staff_age;
            this.staff_sex = staff_sex;
            this.staff_phone = staff_phone;
            this.staff_birth = staff_birth;
            this.time_on = time_on;
            this.end_time = end_time;
        }
        public Night_ShenDomain(int staff_id)
        {
            this.staff_id = staff_id;
        }
        public Night_ShenDomain()
        { 
        }

        public int Staff_id { get => staff_id; set => staff_id = value; }
        public int Staff_identity { get => staff_identity; set => staff_identity = value; }
        public string Staff_name { get => staff_name; set => staff_name = value; }
        public int Staff_age { get => staff_age; set => staff_age = value; }
        public string Staff_sex { get => staff_sex; set => staff_sex = value; }
        public int Staff_phone { get => staff_phone; set => staff_phone = value; }
        public string Staff_birth { get => staff_birth; set => staff_birth = value; }
        public string Time_on { get => time_on; set => time_on = value; }
        public string End_time { get => end_time; set => end_time = value; }

        public override bool Equals(object obj)
        {
            return obj is Night_ShenDomain domain &&
                   Staff_id == domain.Staff_id;
        }

        public override int GetHashCode()
        {
            return -486909441 + Staff_id.GetHashCode();
        }
    }
}
